package org.jeecg.modules.room.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 预定单主信息
 * @Author: jeecg-boot
 * @Date:   2023-12-12
 * @Version: V1.0
 */
@ApiModel(value="room_book_info对象", description="预定单主信息")
@Data
@TableName("room_book_info")
public class RoomBookInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @Dict(dictTable ="sys_user",dicText = "realname",dicCode = "username")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    @Dict(dictTable ="sys_depart",dicText = "depart_name",dicCode = "org_code")
    private String sysOrgCode;
	/**预订单号*/
	@Excel(name = "预订单号", width = 15)
    @ApiModelProperty(value = "预订单号")
    private String bookCode;
	/**预定类型(散客/团体)*/
	@Excel(name = "预定类型(散客/团体)", width = 15)
    @ApiModelProperty(value = "预定类型(散客/团体)")
    @Dict(dicCode = "book_type")
    private String bookType;
	/**预定人*/
	@Excel(name = "预定人", width = 15)
    @ApiModelProperty(value = "预定人")
    private String bookPerson;
	/**预定时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "预定时间")
    private Date bookDate;
    /**预抵店时间*/
    @ApiModelProperty(value = "预抵店时间")
    private String dateArrival;
    /**预离店时间*/
    @ApiModelProperty(value = "预离店时间")
    private String dateDeparture;
    /**房晚数*/
    @Excel(name = "房晚数", width = 15)
    @ApiModelProperty(value = "房晚数")
    private Integer dateNum;
	/**联系电话*/
	@Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String photo;
	/**客户单位*/
	@Excel(name = "客户单位", width = 15)
    @ApiModelProperty(value = "客户单位")
    private String company;
	/**优惠理由*/
	@Excel(name = "优惠理由", width = 15)
    @ApiModelProperty(value = "优惠理由")
    private String discountReason;
    /**预订状态*/
    @Excel(name = "预订状态", width = 15)
    @ApiModelProperty(value = "预订状态")
    @Dict(dicCode = "book_status")
    private String bookStatus;
	/**账户类型（vip）*/
	@Excel(name = "账户类型（vip）", width = 15)
    @ApiModelProperty(value = "账户类型（vip）")
    @Dict(dicCode = "account_type")
    private String accountType;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

    private transient String roomFpDesc;

    private transient String roomFpCode;

    @ApiModelProperty(value = "应收账款")
    private transient Double receiptAmt;
}
